package com.example.climbtest;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.UiSettings;


public class MapFragment  extends SupportMapFragment {

	private GoogleMap mMap;
	
	public MapFragment()
	{
		super();	
	}
	
	public static MapFragment newInstance ()
	{
		MapFragment fragment = new MapFragment();
		
		return fragment;
	}
		
	@Override
	public void onCreate(Bundle arg0)
	{
		super.onCreate(arg0);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater , ViewGroup container, Bundle savedInstanceState)
	{
		View view = super.onCreateView(inflater, container, savedInstanceState);
		initMap();
		return view;
	}
	
	private void initMap()
	{
		UiSettings settings = getMap().getUiSettings();
        settings.setAllGesturesEnabled(true);
        settings.setMyLocationButtonEnabled(true);
        settings.setCompassEnabled(true);
		
		}
	
	
	
	
	
	
	//GoogleMap map = ((SupportMapFragment)  getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
}
